package org.eiahe.hr.attendance.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity;

/**
 * 加班规则表
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_overtime_rule")
public class OvertimeRule extends BaseEntity {

    /**
     * 规则ID
     */
    @TableId(value = "rule_id", type = IdType.AUTO)
    private Long ruleId;

    /**
     * 关联班次ID
     */
    private Long shiftId;

    /**
     * 工作日加班阈值(分钟,如下班后90分钟算加班)
     */
    private Integer workdayThresholdMinutes;

    /**
     * 周末规则(0不算加班 1打卡即算加班)
     */
    private String weekendRule;

    /**
     * 节假日规则(0不算加班 1打卡即算加班)
     */
    private String holidayRule;

    /**
     * 最小计算单位(分钟,如30分钟为单位)
     */
    private Integer minUnitMinutes;

    /**
     * 状态(0正常 1停用)
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    @TableLogic
    private String delFlag;
}
